package com.longma.server.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.longma.server.entity.AddressTree;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface AddressTreeMapper extends BaseMapper<AddressTree> {
    AddressTree getMasterNode(Integer cid);

    List<AddressTree> getSlaveNodes(Integer cid);
}
